package com.hong.service_user_client;

import com.hong.fy_model.model.user.UserEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("service-user")
public interface UserFeignClient {
    //为用户创建一个购物车

    @PostMapping("/api/user/findUser/{userId}")
    public UserEntity findUser(@PathVariable("userId")  Integer userId);
}
